package com.zxg.zbc.biz.util.scrape;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang.StringUtils;

public class ItemInfo implements Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = -3442208329923281324L;
  private String            uuid;
  private String            shopUrl;
  private String            itemUrl;
  private List<String>      itemList;

  public String getUuid() {
    return uuid;
  }
  public void setUuid(String uuid) {
    this.uuid = uuid;
  }
  public String getShopUrl() {
    return shopUrl;
  }
  public void setShopUrl(String shopUrl) {
    this.shopUrl = shopUrl;
  }
  public String getItemUrl() {
    return itemUrl;
  }
  public void setItemUrl(String itemUrl) {
    this.itemUrl = itemUrl;
    if (StringUtils.isNotEmpty(itemUrl)) {
      setItemList(Arrays.asList(itemUrl.split(";")));
    }
  }

  public List<String> getItemList() {
    return itemList;
  }
  public void setItemList(List<String> itemList) {
    this.itemList = itemList;
  }
  @Override
  public String toString() {
    return "ItemInfo [uuid=" + uuid + ", shopUrl=" + shopUrl + ", itemUrl=" + itemUrl + "]";
  }

}
